package com.epoint.dao;

import com.epoint.Entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;


public interface UserMongoDao extends MongoRepository<User, Integer>{

	User findByUserName(String username);

	User findByUserNameAndUserIp(String username,String ip);

	Page<User> findByUserName(String name, Pageable pageable);
}
